import api from "./handle/api.js";


const serviceList = [
    ...api
];

const isDev = process.env.VUE_APP_IS_DEV === "true";
if (isDev) {
    let obj = {};
    serviceList.forEach((item) => {
        if (!item.name) return;
        if (obj[item.name]) {
            alert(
                `接口名${item.name}重复！路径：【${item.url}】和【${
                    obj[item.name].url
                }】。请修改路径！`
            );
        } else {
            obj[item.name] = item;
        }
    });
}


export default serviceList;
